{eval $forum=DB::fetch_first("SELECT f.*,l.* FROM ".DB::table('forum_forum').' f,'.DB::table('forum_forumfield')." l WHERE f.fid='$value[id]' AND l.fid=f.fid");}
$value[title]$forum[posts]
$forum['description']
{lang no_favorite_yet}
{eval $i=1}
{eval $thread=DB::fetch_first("SELECT * FROM ".DB::table('forum_thread')." WHERE tid='$value[id]'");}
{if $thread['attachment'] == 2}
{eval $table='forum_attachment_'.substr($thread['tid'], -1);}
{eval $thread['aid'] = DB::result_first("SELECT aid FROM ".DB::table($table)." WHERE tid='$thread[tid]' AND isimage!='0'");}
{/if}